# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-vmware
pkgver=13.4.0
pkgrel=2
pkgdesc="X.org VMWare video driver"
url="https://xorg.freedesktop.org"
arch="x86 x86_64"
license="MIT"
subpackages="$pkgname-doc"
makedepends="
	eudev-dev
	libdrm-dev
	libxi-dev
	util-macros
	xorg-server-dev
	xorgproto
	"
source="https://www.x.org/releases/individual/driver/xf86-video-vmware-$pkgver.tar.xz"

build() {
	export CFLAGS="${CFLAGS/-fno-plt}"
	export CXXFLAGS="${CXXFLAGS/-fno-plt}"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="
7cacde21a490501dd9c2e9121040274c1f6ef64e6dc0ef49946b400f6297fab73a6e9548e45fe8930cee9028e65e45aaff9ba489dd69ac75a5133114726bf55d  xf86-video-vmware-13.4.0.tar.xz
"
